package chp07;

public class Test07 {
    public static void main(String[] args) {
        int[] nums = {10,20,30,40,50};
        int sum = 0;
        for (int i = 0; i < nums.length; i++) {
            sum += nums[i];
        }
        System.out.println(sum);
    }
}
